package com.neu.his.controller;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.neu.his.bo.fee.FeeRec;
import com.neu.his.bo.inspection.InsItem;
import com.neu.his.bo.inspection.InspectionRec;
import com.neu.his.bo.inspection.InspectionSend;
import com.neu.his.core.Result;
import com.neu.his.entity.DiagRecords;
import com.neu.his.entity.NonDrugDisturb;
import com.neu.his.entity.Patient;
import com.neu.his.mapper.DiagRecordMapper;
import com.neu.his.mapper.NonDrugDisturbMapper;
import com.neu.his.mapper.NonDrugMapper;
import com.neu.his.mapper.PatientMapper;
import com.neu.his.service.registFee02.InspectionService;
import com.neu.his.utils.PageList;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.ArrayList;
import java.util.List;

@Slf4j
@RestController
@CrossOrigin
@RequestMapping("/inspection")
public class InspectionController {
    @Autowired
    private InspectionService inspectionService;

    @PutMapping
    public Result getItem(@RequestBody FeeRec feeRec){
        return inspectionService.getItem(feeRec);
    }

    @PutMapping("/result")
    public Result setInspection(@RequestBody InspectionRec inspectionRec){
        return inspectionService.setInspection(inspectionRec);
    }
}
